package tpdisenio2009.mvp.presenter;

import tpdisenio2009.mvp.display.View;

/**
 *
 * @author Nicolás Kreiff
 */
public abstract class DefaultPresenter<E extends View> implements Presenter<E> {

    private E view;

    public DefaultPresenter( E view ) {
        this.view = view;
    }

    public E getView() {
        return view;
    }

    public void setView( E view ) {
        unbind();
        this.view = view;
        bind();
    }

}
